﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AffordoPlugin.Enum;

namespace AffordoPlugin.Model
{
	public class Message<T>
	{
		public MessageTypeEnum messageType { set; get; }

		public T content { set; get; }
	}

	//public class Content
	//{
	//	public DataTypeEnum dataType { set; get; }

	//	public FileTypeEnum fileType { set; get; }

	//	public string body { set; get; }

	//	/// <summary>
	//	/// 指定设备,端口
	//	/// </summary>
	//	public string device { set; get; }

	//	/// <summary>
	//	/// 打印数量
	//	/// </summary>
	//	public short printQty { set; get; } = 1;

	//	/// <summary>
	//	/// 宽，针对打印机内容消息是图片或者html的，可以指定特定宽度,cm
	//	/// </summary>
	//	public float width { set; get; }

	//	/// <summary>
	//	/// 高，针对打印机内容消息是图片或者html的，可以指定特定高,cm
	//	/// </summary>
	//	public float height { set; get; }

	//	/// <summary>
	//	/// 打印纸的宽度,cm
	//	/// </summary>
	//	public float paperWidth { set; get; }

	//	/// <summary>
	//	/// 打印纸的高度,cm
	//	/// </summary>
	//	public float paperHeight { set; get; }
	//}

	public class PrintContent
	{
		public DataTypeEnum dataType { set; get; }

		public FileTypeEnum fileType { set; get; }

		public string body { set; get; }

		/// <summary>
		/// 指定设备,端口
		/// </summary>
		public string device { set; get; }

		/// <summary>
		/// 打印数量
		/// </summary>
		public short printQty { set; get; } = 1;

		/// <summary>
		/// 宽，针对打印机内容消息是图片或者html的，可以指定特定宽度,cm
		/// </summary>
		public float width { set; get; }

		/// <summary>
		/// 高，针对打印机内容消息是图片或者html的，可以指定特定高,cm
		/// </summary>
		public float height { set; get; }

		/// <summary>
		/// 打印纸的宽度,cm
		/// </summary>
		public float paperWidth { set; get; }

		/// <summary>
		/// 打印纸的高度,cm
		/// </summary>
		public float paperHeight { set; get; }
	}

	public class ElectrinicSaleContent
	{
		//端口
		public string device { set; get; }
	}

	public class BarcodeContent
	{
		public int width { set; get; }

		public int height { set; get; }

		public bool displayText { set; get; }

		public string body { set; get; }
	}
}
